package cn.com.gridinfo.sooc.core.expand.callname.activity;

import android.os.Bundle;
import android.widget.ImageView;

import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.com.gridinfo.sooc.R;
import cn.com.gridinfo.sooc.base.BaseSoocActivity;
import cn.com.gridinfo.sooc.utils.IntentUtil;

/**
 * 我要点名界面
 *
 * @author yingchunli
 */
public class CallNameActivity extends BaseSoocActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.expand_callname);
        ButterKnife.inject(this);
    }

    /**
     * 创建课堂的点击
     */
    @OnClick(R.id.createClass)
    void onCreateClassClick() {
        //跳转到创建课堂界面
        IntentUtil.intentSlidIn(this, CreateClassActivity.class, 00);
    }

    /**
     * 今日点名的点击
     */
    @OnClick(R.id.todaycallname)
    void onTodayCallnameClick() {
        //跳转到今日点名界面
        IntentUtil.intentSlidIn(this, TodayCallNameActivity.class, 00);
    }

    /**
     * 课程管理的点击
     */
    @OnClick(R.id.coursemenu)
    void onCourseMenuClick() {
        //跳转到课程管理界面
        IntentUtil.intentSlidIn(this, CourseMenuActivity.class,00);
    }

    /**
     * 历史点名的点击
     */
    @OnClick(R.id.historycallname)
    void onHistoyCallnameClick() {
        //跳转到历史点名界面
        IntentUtil.intentSlidIn(this, HistoryCallNameActivity.class,00);
    }

    /**
     * 统计的点击
     */
    @OnClick(R.id.tongji)
    void onTongjiClick() {
        //跳转到统计界面
        IntentUtil.intentSlidIn(this, TongjiActivity.class,00);
    }

    @Override
    public String setupToolBarTitle() {
        return "我要点名";
    }

    @Override
    public boolean setupToolBarLeftButton(ImageView leftButton) {
        return true;
    }

    @OnClick(R.id.toolbar_leftbtn)
    void onToolbarLeftClick() {
        finish();
    }
}
